﻿#ifndef MVBDEVICEDATA_H
#define MVBDEVICEDATA_H

#include <QString>

/*******************************
fileName；mvbdevicedata.h
date:2024-12-02
author:bang
describe:MVB端口数据缓存 不解析端口数据
*******************************/

class mvbDeviceData
{
public:
    mvbDeviceData();
    ~mvbDeviceData();
    unsigned int m_portType;  //端口分为1源端口（发送）或者0宿（接受）端口，当前设备作为主设备
    unsigned int m_size;        //字节大小
    unsigned int m_circleTime;
    QString m_portAddress;      //端口地址 16进制
    unsigned char* data;
    unsigned short *shortData;
public:
    void initdata();
    void destroyData();

    QByteArray serialize()const;
    void deserialize(const QByteArray& byteArray) ;
};

#endif // MVBDEVICEDATA_H
